import {setServer} from "@/utils/axios";
import {fireUrl} from "../../../url";
const fireRequest = setServer(fireUrl);

// 查询消防消息配置
export function getFireConfig(query) {
  return fireRequest({
    url: '/config/',
    method: 'get',
    params: query
  })
}

// 添加消防消息配置
export function addFireConfig(query) {
  return fireRequest({
    url: '/config/',
    method: 'post',
    data: query
  })
}

// 修改消防消息配置
export function updateFireConfig(query) {
  return fireRequest({
    url: '/config/',
    method: 'put',
    data: query
  })
}
